package cn.le.springAnnotationCustomize.annotation;

import java.lang.annotation.*;

/**
 * Created by admin on 2017/3/30.
 * 自定义时间验证数注解
 */
@Documented
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@CustomerValidator
public @interface DateString {

    String pattern() default "yyy-MM-dd HH:mm:ss";
    String errorCode() default "must date";
    String message() default "must be date pattern";
}
